package com.sailfish.springbootdemo.controller.db1;

import com.sailfish.springbootdemo.pojo.Result;
import com.sailfish.springbootdemo.pojo.db1.RoadmapCmStatus;
import com.sailfish.springbootdemo.service.db1.RoadmapCmStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
@RequestMapping("/roadmapCmStatus")
@CrossOrigin
public class RoadmapCmStatusController {

    @Autowired
    private RoadmapCmStatusService roadmapCmStatusService;

    @PostMapping("/getRoadmapCmStatusByCompanyAndVersion")
    public Result getRoadmapCmStatusByCompanyAndVersion(Integer pcbaCompanyId, Integer versionY, String versionN) {
        return roadmapCmStatusService.getRoadmapCmStatusByCompanyAndVersion(pcbaCompanyId, versionY, versionN);
    }

    @PostMapping("/updateRoadmapCmStatus")
    public Result updateRoadmapCmStatus(RoadmapCmStatus roadmapCmStatus) {
        return roadmapCmStatusService.updateRoadmapCmStatus(roadmapCmStatus);
    }
}
